<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
        
    </style>
</head>
<body>
    
</body>
<script>
    // 工资计算

    // 时薪
    var rate = 100;
    // 本周工时
    var hour = 30;
    // 总工资
    var money = 0;
    // 判断是否有加班
    if(hour < 40){
        money = hour * rate;
    }else{
        money = (hour - 40) * 1.5 * rate + 40 * rate;
    }
    // 打印最终结果
    console.log(money);



    // ======================



    


</script>
</html>